b1d3fbe323fa43a73ca30fe42897276bb54765ec,sre/io.janusproject/io.janusproject.plugin/src/io/janusproject/kernel/bic/SchedulesSkill.java,SchedulesSkill,uninstall,#,127

Before Change


				this.logger.fineInfo(Messages.SchedulesSkill_0,
						futureDescription.getKey(), future);
			} else {
				future.cancel(true);
				this.logger.fineInfo(Messages.SchedulesSkill_1, futureDescription.getKey(), future);
			}
		}

After Change


			final TaskDescription pair = taskDescription.getValue();
			if (pair != null) {
				future = pair.getFuture();
				if (future != null) {
					if ((future instanceof JanusScheduledFutureTask<?>) && ((JanusScheduledFutureTask<?>) future).isCurrentThread()) {
						// Ignore the cancelation of the future.
						// It is assumed that a ChuckNorrisException will be thrown later.
					} else {
						future.cancel(true);
					}
				}
				task = pair.getTask();